<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <div id="box">
      The first paragraph...
      <p>
        The second paragraph...
        <a href="http://www.example.com">third</a>
      </p>
    </div>
    <script>
      var Obox = document.getElementById('box')
      console.log(Obox.innerHTML)
      console.log(Obox.innerText)
      console.log(Obox.textContent)
    </script>
  </body>
</html>